package org.minuframework.file.upload;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.fileupload.FileItem;
import org.minuframework.exception.ExceptionFailed;

@Deprecated
public interface FileUploadFactory{
    
    String fileUpload(HttpServletRequest request, FileUploadType type);
    
    List<String> fileUploadList(HttpServletRequest request, FileUploadType type);
    
    String fileUpload(FileItem item, FileUploadType type) throws ExceptionFailed;
    
    List<String> fileUpload(List<FileItem> items, FileUploadType type) throws ExceptionFailed;
    
    String fileUploadBase64(byte[] imgstr, FileUploadType type) throws ExceptionFailed;
    
    String fileUploadBase64(byte[] imgstr, String type) throws ExceptionFailed;
    
    String fileUploadBase64(String imgstr, FileUploadType type) throws ExceptionFailed;
    
    String fileUploadBase64(String imgstr, String type) throws ExceptionFailed;
    
    List<String> fileUploadBase64(List<String> imgstr, FileUploadType type) throws ExceptionFailed;
    
    List<String> fileUploadBase64(List<String> imgstr, String type) throws ExceptionFailed;
    
}
